Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@deephaven/log
Advanced tools
A logging library that can be used for modules to log different levels of logging, intercept console logging, and store a history of logs in memory for later consumption or exporting.
npm install --save @deephaven/log
import Log from '@deephaven/log'
// Set the level of logging you want in your app (default is INFO). This can be changed dynamically.
import { LoggerLevel } from '@deephaven/log'
Log.setLogLevel(LoggerLevel.DEBUG2);
// You can log messages directly without a module by calling the logging methods directly
Log.info('basic info level log message');
// Alternatively, create a log module to group log messages. All messages logged to this module will be prefixed with `[MyModuleName]`.
const log = Log.module('MyModuleName');
// The different possible logging methods. If the log level is set lower than the recorded method, it will not be logged.
log.debug2('debug2 level log message');
log.debug('debug level log message');
log.info('info level log message');
log.log('alias for log.info');
log.warn('warning level log message');
log.error('error level log message');
// Enable the LogProxy to intercept all console messages
import { LogProxy } from '@deephaven/log';
const logProxy = new LogProxy();
logProxy.enable();
// Enable the LogHistory to store all log messages in memory for later consumption or exporting (requires LogProxy to be enabled already)
import { LogHistory } from '@deephaven/log';
const logHistory = new LogHistory(logProxy);
logHistory.enable();
Deephaven Data Labs and any contributors grant you a license to the content of this repository under the Apache 2.0 License, see the LICENSE file.
0.30.0 (2023-02-13)
code-studio
, embed-grid
, and embed-chart
applications. Existing
(Enterprise) applications should be able to use jsapi-shim
still and
load the JS API using the old method.FAQs
Deephaven Logger
The npm package @deephaven/log receives a total of 904 weekly downloads. As such, @deephaven/log popularity was classified as not popular.
We found that @deephaven/log demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.